import {getCurrentInstance} from "vue";
import logo from '@/assets/img/logo.png'

/**
 * 管理系统关于
 * @returns {{showAbout: showAbout}}
 */
export default function () {
  const {proxy} = getCurrentInstance()
  const showAbout = () => {
    proxy.$alert(

             `<div class="about-content">
                <div class="about-left">
                    <div class="img-box"><img src='${logo}' /></div>
                </div>
                <div class="about-right">
                    <div>${aboutConfig.name}</div>
                    <div>${aboutConfig.aliasName}</div>
                    <div class="version">当前版本：${aboutConfig.version}</div>
                </div>
            </div>`,
      '',
      {
        customClass: 'about-Popup',
        dangerouslyUseHTMLString: true,
        showConfirmButton: false
      })
  }

  return {
    showAbout
  }
}
